package ua.kpi.apolonov.answers;

import java.io.Serializable;

/**
 * Structure of answer
 * @version 4.3 18.03.2013
 * @author Yegor Apolonov 
 */
public class Answer implements Cloneable, Serializable {
	
    private String answer;
    private boolean correctness;
     
    public Answer(Answer answer) {
    	this.answer = answer.getAnswerText();
    	this.correctness = answer.getCorrectness();
    }
    
    public Answer(String answer, boolean correctness) {
        this.answer = answer;
        this.correctness = correctness;
    }
    
    public String getAnswerText() {
        return answer;
    }
    
    public boolean getCorrectness() {
        return correctness;
    }
    
    @Override
    public Answer clone() {
		return new Answer(answer, correctness);
    }
    
}
